From 182b6f7a3c80a21cc7a8144dbc18b29ba622cc5f Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Fri, 8 Jul 2011 23:20:06 -0400 Subject: [PATCH] This is more horrible than I had realized Due to tragic misunderstandings at the birth of ATK, AtkUtil can't actually be properly derived. Instead, each implementation has to poke its vfuncs directly into the AtkUtilClass struct. So painful to have shipped this stuff for 10 years... --- gtk/a11y/gailutil.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/gtk/a11y/gailutil.c b/gtk/a11y/gailutil.c index c84a80bd14..e19ba8211f 100644 --- a/gtk/a11y/gailutil.c +++ b/gtk/a11y/gailutil.c @@ -514,7 +514,11 @@ configure_event_watcher (GSignalInvocationHint *hint, static void gail_util_class_init (GailUtilClass *klass) { - AtkUtilClass *atk_class = ATK_UTIL_CLASS (klass); + AtkUtilClass *atk_class; + gpointer data; + + data = g_type_class_peek (ATK_TYPE_UTIL); + atk_class = ATK_UTIL_CLASS (data); atk_class->add_global_event_listener = gail_util_add_global_event_listener; atk_class->remove_global_event_listener = gail_util_remove_global_event_listener; -- 2.30.2